package com.hzncc.flowable_diboot.delivery.entity;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.lang.Double;
import java.math.BigDecimal;
import jakarta.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;


import com.diboot.core.util.D;
import com.diboot.core.entity.BaseModel;
import com.diboot.core.entity.BaseEntity;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* 发货明细 Entity 定义
* @author MyName
* @version 1.0
* @date 2024-10-10
* Copyright © MyCorp
*/

@TableName("mdl_delivery_detail")
@Getter @Setter @Accessors(chain = true)
public class DeliveryDetail extends BaseModel {
    private static final long serialVersionUID = 1249978063222971754L;

    /**
     * 租户
     */
    @NotNull(message = "租户不能为空")
    @TableField()
    private String tenantId;

    /**
     * sap合同号
     */
    @Length(max=100, message="sap合同号长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String sapContractCode;

    /**
     * 销售订单号
     */
    @Length(max=100, message="销售订单号长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String sapOrderCode;

    /**
     * 发货单号
     */
    @Length(max=100, message="发货单号长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String deliveryCode;

    /**
     * 项目号
     */
    @Length(max=100, message="项目号长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String productCode;

    /**
     * 物料号
     */
    @Length(max=100, message="物料号长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String materialCode;

    /**
     * 数量
     */
    @TableField()
    private Long quantity;

    /**
     * 含税单价
     */
    @TableField()
    private BigDecimal price;

    /**
     * 发货金额
     */
    @TableField()
    private BigDecimal amount;

    /**
     * 明细类型
     */
    @Length(max=100, message="明细类型长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String type;

    /**
     * 发货登记类型
     */
    @Length(max=100, message="发货登记类型长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String registerType;

    /**
     * 描述
     */
    @Length(max=100, message="描述长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String description;


}